package edcom.client;
// import edcom.exception.*;

public class Student {

	private String m_snum;
	private String m_username;
	private String m_password;
	private String m_name;
	private String m_email;
	private String m_major;

	public Student(){
		// fields are initialized to empty strings
		// fields will only change if inputs are well-formed 
		// (via AddStudentController only pls) 
		this.m_snum = "";
		this.m_username = "";
		this.m_password = "";
		this.m_name = "";
		this.m_email = "";
		this.m_major = "";
	}
	
	public String getStudentNumber()
	{
		return this.m_snum;
	}
	
	public int setStudentNumber(String src)
	{
		this.m_snum = src;
		return 0;
	}
	
	public String getUserName()
	{
		return this.m_username;
	}
	
	public int setUserName(String src)
	{
		this.m_username = src;
		return 0;
	}
	
	public String getPassword()
	{
		return this.m_password;
	}
	
	public int setPassword(String src)
	{
		this.m_password = src;
		return 0;
	}
	
	public String getName()
	{
		return this.m_name;
	}
	
	public int setName(String src)
	{
		this.m_name = src;
		return 0;
	}
	
	public String getEmail()
	{
		return this.m_email;
	}
	
	public int setEmail(String src)
	{
		this.m_email = src;
		return 0;
	}
	
	public String getMajor()
	{
		return this.m_major;
	}
	
	public int setMajor(String src)
	{
		this.m_major = src;
		return 0;
	}
	///*
	public static final int name = 0;
	public static final int studentNumber = 1;
	public static final int username = 2;
	public static final int password = 3;
	public static final int email = 4;
	public static final int major = 5;
	public static final int sqlStatus = 6;
	public static final int generalError = 7;
	//*/
}


